<style>
	.news-post span { margin-bottom: 10px; }
	.news-post img { float: left; margin: 0px; margin-bottom: 10px; margin-right: 20px; width: 150px; }
</style>

<?php $recent = new WP_Query("cat=$category&showposts=9999"); while($recent->have_posts()) : $recent->the_post();?>
	<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?> news-post">
    	<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
		
        <a href="<?php the_permalink(); ?>">
        <?php if(has_post_thumbnail()) { echo the_post_thumbnail();
			} elseif (get_post_meta($post->ID, "MainImg", true)) { include('pr-thumb-image-2.php') ;
			} else {
				include('pr-thumb-image.php') ;
			}
		?>
        </a>
        
    	<p><?php the_excerpt(); ?></p>
    	<span><a href="<?php the_permalink(); ?>">View More</a></span>
        <div style="width: 630x; height: 1px; margin-top: 10px; margin-bottom: 10px; background-color: #cccccc; clear: both;"></div>
    </div>
<?php endwhile; ?>

